const mongoose = require('mongoose');
const userSchema = new mongoose.Schema({
  us: { type: String, require: true },
  ps: { type: String, require: true },
  sex: { type: Number, default: 0 },
});
// 将schema对象转换为数据模型
const User = mongoose.model('user', userSchema); // 该数据对象和集合关联('集合名',schema对象)

module.exports = User;